@import url('https://fonts.cdnfonts.com/css/minecraft-4');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Minecraft', sans-serif;
  background-color: #79c05a;
  color: #2a2a2a;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h2 {
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 2px 2px #555;
}

.site-header {
  background: url('../images/dirt-texture.png') repeat;
  padding: 1rem 0;
  border-bottom: 5px solid #3c2a0e;
  color: #fff;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-size: 1.8rem;
  color: #fff;
  text-shadow: 2px 2px #000;
}

.navbar ul {
  display: flex;
  list-style: none;
}

.navbar li {
  margin-left: 20px;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  background: #3c2a0e;
  border-radius: 4px;
  box-shadow: 2px 2px #222;
  transition: background-color 0.3s ease;
}

.navbar a:hover {
  background: #745b32;
}

.nav-toggle,
.nav-toggle-label {
  display: none;
}

.hero {
  text-align: center;
  padding: 2rem 0;
  background: #79c05a;
}

.hero img {
  width: 100%;
  max-width: 600px;
  border: 5px solid #3c2a0e;
  border-radius: 4px;
  margin-top: 1rem;
}

.btn {
  display: inline-block;
  background: #3c2a0e;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  margin-top: 1rem;
  border: 3px solid #2a2a2a;
  box-shadow: 3px 3px #222;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background: #745b32;
}

.about {
  background: #3c2a0e;
  padding: 2rem 0;
  text-align: center;
  color: #fff;
}

.about ul {
  list-style-type: square;
  display: inline-block;
  text-align: left;
  margin-top: 1rem;
}

.gallery {
  background: #5c913b;
  padding: 2rem 0;
}

.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  background: #3c2a0e;
  color: #fff;
  padding: 1rem;
  max-width: 300px;
  width: 100%;
  text-align: center;
  border: 3px solid #2a2a2a;
  border-radius: 6px;
  box-shadow: 3px 3px #111;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 6px 6px #111;
}

.card img {
  width: 100%;
  border-radius: 4px;
}

.contact {
  background: #3c2a0e;
  padding: 2rem 0;
  color: #fff;
}

.contact-form {
  max-width: 500px;
  margin: auto;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  border: 3px solid #2a2a2a;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-family: 'Minecraft', sans-serif;
  font-size: 1rem;
}

.site-footer {
  text-align: center;
  padding: 1rem 0;
  background: #2a2a2a;
  color: #fff;
  border-top: 5px solid #3c2a0e;
}

@media (max-width: 768px) {
  .nav-toggle-label {
    display: block;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
  }

  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    background: #fff;
    height: 4px;
    width: 100%;
    border-radius: 2px;
    position: absolute;
    transition: all 0.3s ease;
  }

  .nav-toggle-label span::before {
    content: '';
    top: -8px;
  }

  .nav-toggle-label span::after {
    content: '';
    top: 8px;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #3c2a0e;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
  }

  .navbar ul {
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }
  
  .navbar li {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
  
  .navbar a {
    display: block;
    padding: 1rem;
    background: none;
    box-shadow: none;
    border-radius: 0;
  }
  
  .navbar a:hover {
    background: #745b32;
  }

  .nav-toggle {
    display: none;
  }
  
  .nav-toggle:checked ~ .navbar {
    max-height: 500px;
  }
  
  .nav-toggle:checked + .nav-toggle-label span {
    background: transparent;
  }
  
  .nav-toggle:checked + .nav-toggle-label span::before {
    transform: rotate(45deg);
    top: 0;
  }
  
  .nav-toggle:checked + .nav-toggle-label span::after {
    transform: rotate(-45deg);
    top: 0;
  }

  .card-grid {
    flex-direction: column;
    align-items: center;
  }
}